#ifndef INCLUDED_HEALTH_H //if not , define
#define INCLUDED_HEALTH_H
#include "SGE.h"
using namespace SGE;



class Health
{
public:
	Health();
	~Health();

	void Load(); //initialize
	void Unload(); //terminate
	void Update(float deltaTime);
	void Render(const SVector2& viewOffset);

	//Accessors
	void SetPosition(const SVector2& pos)							 {mPosition = pos;}
	void SetCurHealth(int curhealth)								{mCurrentHealth=curhealth;}
	void SetMaxHealth(int maxhealth)								{mMaxHealth=maxhealth;}
	void SetScale(const SVector2& scale)							 {mScale = scale;}
	void SetFacingLeft(bool facingLeft)		                         { mFacingLeft = facingLeft; }
	void SetHit(bool mActive)											{mHit=mActive;}

	//Mutators
	int GetCurHealth()												{ return mMaxHealth;}
	int GetMaxHealth()												{ return mCurrentHealth;}
	const SVector2& GetPosition() const								 { return mPosition;}
	bool GetHit()														{return mHit;}
	bool IsFacingLeft() const				                            { return mFacingLeft; }
	
	

private:
	SGE_Sprite mSprite;
	SVector2 mPosition;
	SVector2 mScale;
	
	bool mHit;
	bool mFacingLeft;
	int mMaxHealth;
	int mCurrentHealth;
};


#endif INCLUDED_HEALTH_H